{{csrf_field()}}



<div class="layui-form-item layui-col-md6">
    <label for="" class="layui-form-label">活动名称</label>
    <div class="layui-input-block">
        <input type="text" name="activity_name" value="{{ $data['activity_name'] ?? '' }}" lay-verify="required"   class="layui-input" >
    </div>
</div>



<div class="layui-form-item">
    <label for="" class="layui-form-label">状态</label>
    <div class="layui-input-block">
        <input type="checkbox" name="status" lay-skin="switch" value="1" lay-text="开启|关闭" @if( !isset($data['status']) || $data['status'] != 2 ) checked @endif >
    </div>
</div>
<div class="layui-form-item layui-col-md6">
    <label for="" class="layui-form-label">活动链接</label>
    <div class="layui-input-block">
        <input type="text" name="jump_url" value="{{ $data['jump_url'] ?? '' }}" class="layui-input" >
    </div>
</div>




<div class="layui-form-item">
    <div class="layui-input-block">
        {{isset($data) ? method_field('PUT') : ''}}
        <a  class="layui-btn" href="{{route('activity.index')}}" >取 消</a>
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="layui-form-submit">确认添加</button>
    </div>
</div>

